<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>文档标题</title>
</head>
<style>
	.mask:hover{
		background-color:black;
		color: white;
	}
</style>
<body>
    <p>这是测试<span class="mask">并且被掩盖的</span>文字！</p>
</body>
</html>